import redis
from flask import Flask
from flask import session
from flask_sqlalchemy import SQLAlchemy
from flask_session import Session
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from config import Config
from info import create_app, db

app = create_app('Deveconfig')
manager = Manager(app)
Migrate(app, db)
manager.add_command('db', MigrateCommand)


@app.route('/')
def index():
    session['name'] = '208'
    return 'hello world'


if __name__ == '__main__':
    manager.run()
